package com.caigou.service.impl;

import com.caigou.bean.cms.entity.AdOperationLog;
import com.caigou.bean.cms.param.AdConfigParam;
import com.caigou.mapper.cms.AdOperationLogMapper;
import com.caigou.pojo.OperationList;
import com.caigou.service.AdOperationLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("adOperationLogService")
public class AdOperationLogServiceImpl implements AdOperationLogService {

    @Resource
    private AdOperationLogMapper adOperationLogMapper;

    @Override
    public void saveOperationData(AdOperationLog operationLog) {
        adOperationLogMapper.saveOperationData(operationLog);
    }

    @Override
    public List<OperationList> loadOperationList(AdConfigParam param) {
        return adOperationLogMapper.loadOperationList(param);
    }
}
